Skip to content

feat(docker): use SAM_DOCKER_API_VERSION to control docker api version#8454

Merged
roger-zhangg merged 4 commits into
aws:developfrom
roger-zhangg:docker_envvar
Nov 21, 2025
Merged

feat(docker): use SAM_DOCKER_API_VERSION to control docker api version#8454
roger-zhangg merged 4 commits into
aws:developfrom
roger-zhangg:docker_envvar

Conversation

@roger-zhangg

Copy link
Copy Markdown
Member

Which issue(s) does this change fix?

if docker API version 1.35 & 1.44 all doest work in certain scenario, the user can't use SAM CLI's docker feature until we release a fix.

Why is this change necessary?

this PR provides an escape hatch to use envvar SAM_DOCKER_API_VERSION to set a working docker API until we release a new fix.

How does it address the issue?

SAM_DOCKER_API_VERSION=1.51 sam build -u to force using 1.51 as docker API version

What side effects does this change have?

potentially SAM_DOCKER_API_VERSION could have a conflicting use, but this is very unlikely

Mandatory Checklist

PRs will only be reviewed after checklist is complete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@roger-zhangg
roger-zhangg requested a review from a team as a code owner November 21, 2025 00:25
valerena
valerena previously approved these changes Nov 21, 2025

@valerena valerena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in the PR title "docer api version". Please fix before/when merging.

@roger-zhangg roger-zhangg changed the title feat(docker): use SAM_DOCKER_API_VERSION to control docer api version feat(docker): use SAM_DOCKER_API_VERSION to control docker api version Nov 21, 2025
Comment thread samcli/local/docker/container_client.py Outdated
@roger-zhangg
roger-zhangg added this pull request to the merge queue Nov 21, 2025
Merged via the queue into aws:develop with commit 47bfe49 Nov 21, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants